﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ObserverPattern
{
    public class Emailer:IObserverAccount
    {
        private string _email;
        public Emailer(string emailer)
        {
            this._email = emailer; 
        }

        public void Update(Subject subject)
        {
            Console.WriteLine("Notified: Emailer is {0}，you withdraw {1:C}",_email, subject.Money);
        }
    }
}
